<HTML>
<HEAD>
<meta charset="UTF-8">
<title>SingleLiveData.setValue - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.commons.ui.livedata</a>&nbsp;/&nbsp;<a href="index.html">SingleLiveData</a>&nbsp;/&nbsp;<a href="./set-value.html">setValue</a><br/>
<br/>
<h1>setValue</h1>
<a name="com.vmadalin.commons.ui.livedata.SingleLiveData$setValue(com.vmadalin.commons.ui.livedata.SingleLiveData.T)"></a>
<code><span class="identifier">@MainThread</span> <span class="keyword">fun </span><span class="identifier">setValue</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.livedata.SingleLiveData$setValue(com.vmadalin.commons.ui.livedata.SingleLiveData.T)/value">value</span><span class="symbol">:</span>&nbsp;<span class="identifier">T</span><span class="symbol">?</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code>
<p>Sets the value. If there are active observers, the value will be dispatched to them.</p>
<h3>Parameters</h3>
<p><a name="value"></a>
<code>value</code> - The new value</p>
<p><strong>See Also</strong><br/>
<p><a href="#">MutableLiveData.setValue</a></p>
</p>
</BODY>
</HTML>
